public class LoopingExample 
{

	public static void main(String[] args) {

		String[] names = { "Naresh", "Kalyan", "xyz", "abx", "abc", "ppp",
				"Reddy", "sss", "sds" };
		
		
		String xyzString =  names[0];

		System.out.println(xyzString);
		
		xyzString = names[1];
		System.out.println(xyzString);
		
		xyzString =names[8];
		
		System.out.println(xyzString);
		
		
		for (String xyzString2 : names) {
			
			System.out.println(xyzString2);
			
		}
		
		
		
		
			}

}
